/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WmsBoxInvRef extends BasicModel<WmsBoxInvRef> {
  code?: string; // 箱子编码
  cinvcode?: string; // 存货编码
  cbatch?: string; // 批次
  iqty?: number; // 数量
}

export const wmsBoxInvRefList = (params?: WmsBoxInvRef | any) =>
  defHttp.get<WmsBoxInvRef>({ url: adminPath + '/_3d/wmsBoxInvRef/list', params });

export const wmsBoxInvRefListData = (params?: WmsBoxInvRef | any) =>
  defHttp.post<Page<WmsBoxInvRef>>({ url: adminPath + '/_3d/wmsBoxInvRef/listData', params });

export const wmsBoxInvRefForm = (params?: WmsBoxInvRef | any) =>
  defHttp.get<WmsBoxInvRef>({ url: adminPath + '/_3d/wmsBoxInvRef/form', params });

export const wmsBoxInvRefSave = (params?: any, data?: WmsBoxInvRef | any) =>
  defHttp.postJson<WmsBoxInvRef>({ url: adminPath + '/_3d/wmsBoxInvRef/save', params, data });

export const wmsBoxInvRefDelete = (params?: WmsBoxInvRef | any) =>
  defHttp.get<WmsBoxInvRef>({ url: adminPath + '/_3d/wmsBoxInvRef/delete', params });
